// vite.config.js
import { defineConfig } from "file:///D:/IdeaProject/ProcessManagement/process_management/vue/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/IdeaProject/ProcessManagement/process_management/vue/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///D:/IdeaProject/ProcessManagement/process_management/vue/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/IdeaProject/ProcessManagement/process_management/vue/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ElementPlusResolver } from "file:///D:/IdeaProject/ProcessManagement/process_management/vue/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import { styleType } from "file:///D:/IdeaProject/ProcessManagement/process_management/vue/node_modules/element-plus/es/components/table-v2/src/common.mjs";
import path from "path";
var __vite_injected_original_dirname = "D:\\IdeaProject\\ProcessManagement\\process_management\\vue";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    })
  ],
  resolve: {
    // 配置路径别名
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "./src")
    }
  },
  // vite 官方解决axios跨域问题
  //代理跨域 vite官方文档 给出的跨域问题将解决 
  //跨域问题解决方案 JSON  CROS 代理
  server: {
    proxy: {
      "/api": {
        target: "http://localhost:8080",
        changeOrigin: true,
        // secure: true, // target是否https接口
        // ws: true, // target是否代理websockets
        rewrite: (path2) => path2.replace(/^\/api/, "")
        //路径重写
        // pathRewrite:{
        //   '^/api':'' //重写api，把api变成空字符，因为我们真正请求的路径是没有api的
        // }
      }
    },
    hmr: true
    // 启用 HMR+
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxJZGV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